import Vue from 'vue';
import App from './App';
import router from './router';
import Http from '@/plugins/http';
import utils from '@/plugins/urlGet';
import 'vant/lib/index.css';
import 'amfe-flexible/index.js';
import echarts from 'echarts/dist/echarts.common.js';
import { Toast ,Sticky,List, Uploader } from 'vant';
import VueScroller from 'vue-scroller';
import { Lazyload } from 'vant';
import { ImagePreview } from 'vant';
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true
});
Vue.use(Toast).use(Sticky).use(List).use(ImagePreview).use(Uploader);
Vue.use(VueScroller).use(Http);
Vue.prototype.$utils=utils;
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
